\hypertarget{classfilesystem_1_1server_1_1file_1_1FileHandler}{\section{Referência da Classe filesystem.\-server.\-file.\-File\-Handler}
\label{classfilesystem_1_1server_1_1file_1_1FileHandler}\index{filesystem.\-server.\-file.\-File\-Handler@{filesystem.\-server.\-file.\-File\-Handler}}
}


Diagrama de colaboração para filesystem.\-server.\-file.\-File\-Handler\-:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=206pt]{classfilesystem_1_1server_1_1file_1_1FileHandler__coll__graph}
\end{center}
\end{figure}
\subsection*{Métodos Públicos}
\begin{DoxyCompactItemize}
\item 
String \hyperlink{classfilesystem_1_1server_1_1file_1_1FileHandler_addd8143d9e8114de949672b7c129ad3d}{get\-Name} ()
\item 
void \hyperlink{classfilesystem_1_1server_1_1file_1_1FileHandler_a87fa10e0cde64bc99e0f77ce42c2712b}{add\-Host} (String path, String host)
\item 
\hyperlink{classfilesystem_1_1server_1_1file_1_1FileHost}{File\-Host}\mbox{[}$\,$\mbox{]} \hyperlink{classfilesystem_1_1server_1_1file_1_1FileHandler_aa2ddd99cff787ea33609a449a8f2ff8c}{get\-Hosts} ()
\item 
boolean \hyperlink{classfilesystem_1_1server_1_1file_1_1FileHandler_a9b9ec2f841dde92007f6483ebbf855c6}{write\-Request} ()
\item 
void \hyperlink{classfilesystem_1_1server_1_1file_1_1FileHandler_a00578843be5b14de482ae268d17da9a1}{write\-Request\-Block} ()
\item 
void \hyperlink{classfilesystem_1_1server_1_1file_1_1FileHandler_ae4f73b41b502a7f05073a7327d0491b2}{write\-Commit} (String path, String host)
\item 
boolean \hyperlink{classfilesystem_1_1server_1_1file_1_1FileHandler_a49be6804a8a6b409c446524b03605667}{read\-Request} ()
\item 
void \hyperlink{classfilesystem_1_1server_1_1file_1_1FileHandler_a4e5f293d4cc040001a761926771d0558}{read\-Request\-Block} ()
\item 
void \hyperlink{classfilesystem_1_1server_1_1file_1_1FileHandler_aa2292a41b2130e91a9467f827d48b482}{read\-Release} ()
\end{DoxyCompactItemize}
\subsection*{Métodos Protegidos}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classfilesystem_1_1server_1_1file_1_1FileHandler_ad3753fc7827e189fedf400aebec775af}{File\-Handler} (String name, String path, String host)
\begin{DoxyCompactList}\small\item\em Marcado para ser deletado (impede novas Leituras/\-Escritas) \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Descrição Detalhada}
Classe que gerencia o acesso a um arquivo. 

\subsection{Construtores \& Destrutores}
\hypertarget{classfilesystem_1_1server_1_1file_1_1FileHandler_ad3753fc7827e189fedf400aebec775af}{\index{filesystem\-::server\-::file\-::\-File\-Handler@{filesystem\-::server\-::file\-::\-File\-Handler}!File\-Handler@{File\-Handler}}
\index{File\-Handler@{File\-Handler}!filesystem::server::file::FileHandler@{filesystem\-::server\-::file\-::\-File\-Handler}}
\subsubsection[{File\-Handler}]{\setlength{\rightskip}{0pt plus 5cm}filesystem.\-server.\-file.\-File\-Handler.\-File\-Handler (
\begin{DoxyParamCaption}
\item[{String}]{name, }
\item[{String}]{path, }
\item[{String}]{host}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [protected]}}}\label{classfilesystem_1_1server_1_1file_1_1FileHandler_ad3753fc7827e189fedf400aebec775af}


Marcado para ser deletado (impede novas Leituras/\-Escritas) 

Cria o objeto responsável pelo gerenciamento do arquivo.


\begin{DoxyParams}{Parâmetros}
{\em name} & Nome do arquivo no sistema. \\
\hline
{\em hash} & o hash do arquivo. \\
\hline
{\em path} & o caminho do arquivo no nó. \\
\hline
{\em host} & o nó em que está localizado o arquivo. \\
\hline
\end{DoxyParams}


\subsection{Métodos}
\hypertarget{classfilesystem_1_1server_1_1file_1_1FileHandler_addd8143d9e8114de949672b7c129ad3d}{\index{filesystem\-::server\-::file\-::\-File\-Handler@{filesystem\-::server\-::file\-::\-File\-Handler}!get\-Name@{get\-Name}}
\index{get\-Name@{get\-Name}!filesystem::server::file::FileHandler@{filesystem\-::server\-::file\-::\-File\-Handler}}
\subsubsection[{get\-Name}]{\setlength{\rightskip}{0pt plus 5cm}String filesystem.\-server.\-file.\-File\-Handler.\-get\-Name (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{classfilesystem_1_1server_1_1file_1_1FileHandler_addd8143d9e8114de949672b7c129ad3d}
Obtém o nome do arquivo.

\begin{DoxyReturn}{Retorna}
Nome do arquivo. 
\end{DoxyReturn}


Este é o diagrama das funções que utilizam esta função\-:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{classfilesystem_1_1server_1_1file_1_1FileHandler_addd8143d9e8114de949672b7c129ad3d_icgraph}
\end{center}
\end{figure}


\hypertarget{classfilesystem_1_1server_1_1file_1_1FileHandler_a87fa10e0cde64bc99e0f77ce42c2712b}{\index{filesystem\-::server\-::file\-::\-File\-Handler@{filesystem\-::server\-::file\-::\-File\-Handler}!add\-Host@{add\-Host}}
\index{add\-Host@{add\-Host}!filesystem::server::file::FileHandler@{filesystem\-::server\-::file\-::\-File\-Handler}}
\subsubsection[{add\-Host}]{\setlength{\rightskip}{0pt plus 5cm}void filesystem.\-server.\-file.\-File\-Handler.\-add\-Host (
\begin{DoxyParamCaption}
\item[{String}]{path, }
\item[{String}]{host}
\end{DoxyParamCaption}
)}}\label{classfilesystem_1_1server_1_1file_1_1FileHandler_a87fa10e0cde64bc99e0f77ce42c2712b}
Adiciona um host que contém o arquivo


\begin{DoxyParams}{Parâmetros}
{\em path} & O caminho do arquivo no host \\
\hline
{\em host} & O host que contém o arquivo \\
\hline
\end{DoxyParams}


Este é o diagrama das funções que utilizam esta função\-:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{classfilesystem_1_1server_1_1file_1_1FileHandler_a87fa10e0cde64bc99e0f77ce42c2712b_icgraph}
\end{center}
\end{figure}


\hypertarget{classfilesystem_1_1server_1_1file_1_1FileHandler_aa2ddd99cff787ea33609a449a8f2ff8c}{\index{filesystem\-::server\-::file\-::\-File\-Handler@{filesystem\-::server\-::file\-::\-File\-Handler}!get\-Hosts@{get\-Hosts}}
\index{get\-Hosts@{get\-Hosts}!filesystem::server::file::FileHandler@{filesystem\-::server\-::file\-::\-File\-Handler}}
\subsubsection[{get\-Hosts}]{\setlength{\rightskip}{0pt plus 5cm}{\bf File\-Host} \mbox{[}$\,$\mbox{]} filesystem.\-server.\-file.\-File\-Handler.\-get\-Hosts (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{classfilesystem_1_1server_1_1file_1_1FileHandler_aa2ddd99cff787ea33609a449a8f2ff8c}
Obtém os hosts em que o arquivo está armazenado.

\begin{DoxyReturn}{Retorna}
Lista com todos os hosts que contém o arquivo. 
\end{DoxyReturn}


Este é o diagrama das funções que utilizam esta função\-:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{classfilesystem_1_1server_1_1file_1_1FileHandler_aa2ddd99cff787ea33609a449a8f2ff8c_icgraph}
\end{center}
\end{figure}


\hypertarget{classfilesystem_1_1server_1_1file_1_1FileHandler_a9b9ec2f841dde92007f6483ebbf855c6}{\index{filesystem\-::server\-::file\-::\-File\-Handler@{filesystem\-::server\-::file\-::\-File\-Handler}!write\-Request@{write\-Request}}
\index{write\-Request@{write\-Request}!filesystem::server::file::FileHandler@{filesystem\-::server\-::file\-::\-File\-Handler}}
\subsubsection[{write\-Request}]{\setlength{\rightskip}{0pt plus 5cm}boolean filesystem.\-server.\-file.\-File\-Handler.\-write\-Request (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{classfilesystem_1_1server_1_1file_1_1FileHandler_a9b9ec2f841dde92007f6483ebbf855c6}
Requere uma operação de escrita no arquivo (não bloqueante).

\begin{DoxyReturn}{Retorna}
true se a operação foi aceita, false, caso contrário. 
\end{DoxyReturn}


Este é o diagrama das funções que utilizam esta função\-:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{classfilesystem_1_1server_1_1file_1_1FileHandler_a9b9ec2f841dde92007f6483ebbf855c6_icgraph}
\end{center}
\end{figure}


\hypertarget{classfilesystem_1_1server_1_1file_1_1FileHandler_a00578843be5b14de482ae268d17da9a1}{\index{filesystem\-::server\-::file\-::\-File\-Handler@{filesystem\-::server\-::file\-::\-File\-Handler}!write\-Request\-Block@{write\-Request\-Block}}
\index{write\-Request\-Block@{write\-Request\-Block}!filesystem::server::file::FileHandler@{filesystem\-::server\-::file\-::\-File\-Handler}}
\subsubsection[{write\-Request\-Block}]{\setlength{\rightskip}{0pt plus 5cm}void filesystem.\-server.\-file.\-File\-Handler.\-write\-Request\-Block (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{classfilesystem_1_1server_1_1file_1_1FileHandler_a00578843be5b14de482ae268d17da9a1}
Requere uma operação de escrita no arquivo (bloqueante). \hypertarget{classfilesystem_1_1server_1_1file_1_1FileHandler_ae4f73b41b502a7f05073a7327d0491b2}{\index{filesystem\-::server\-::file\-::\-File\-Handler@{filesystem\-::server\-::file\-::\-File\-Handler}!write\-Commit@{write\-Commit}}
\index{write\-Commit@{write\-Commit}!filesystem::server::file::FileHandler@{filesystem\-::server\-::file\-::\-File\-Handler}}
\subsubsection[{write\-Commit}]{\setlength{\rightskip}{0pt plus 5cm}void filesystem.\-server.\-file.\-File\-Handler.\-write\-Commit (
\begin{DoxyParamCaption}
\item[{String}]{path, }
\item[{String}]{host}
\end{DoxyParamCaption}
)}}\label{classfilesystem_1_1server_1_1file_1_1FileHandler_ae4f73b41b502a7f05073a7327d0491b2}
Finaliza a operação de escrita no arquivo.


\begin{DoxyParams}{Parâmetros}
{\em hash} & O novo hash do arquivo. \\
\hline
{\em path} & O caminho no host do arquivo. \\
\hline
{\em host} & O host em que o arquivo modificado está armazenado. \\
\hline
\end{DoxyParams}


Este é o diagrama das funções que utilizam esta função\-:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{classfilesystem_1_1server_1_1file_1_1FileHandler_ae4f73b41b502a7f05073a7327d0491b2_icgraph}
\end{center}
\end{figure}


\hypertarget{classfilesystem_1_1server_1_1file_1_1FileHandler_a49be6804a8a6b409c446524b03605667}{\index{filesystem\-::server\-::file\-::\-File\-Handler@{filesystem\-::server\-::file\-::\-File\-Handler}!read\-Request@{read\-Request}}
\index{read\-Request@{read\-Request}!filesystem::server::file::FileHandler@{filesystem\-::server\-::file\-::\-File\-Handler}}
\subsubsection[{read\-Request}]{\setlength{\rightskip}{0pt plus 5cm}boolean filesystem.\-server.\-file.\-File\-Handler.\-read\-Request (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{classfilesystem_1_1server_1_1file_1_1FileHandler_a49be6804a8a6b409c446524b03605667}
Requere uma operação de leitura no arquivo (não bloqueante).

\begin{DoxyReturn}{Retorna}
true se a operação foi aceita, false, caso contrário. 
\end{DoxyReturn}


Este é o diagrama das funções que utilizam esta função\-:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{classfilesystem_1_1server_1_1file_1_1FileHandler_a49be6804a8a6b409c446524b03605667_icgraph}
\end{center}
\end{figure}


\hypertarget{classfilesystem_1_1server_1_1file_1_1FileHandler_a4e5f293d4cc040001a761926771d0558}{\index{filesystem\-::server\-::file\-::\-File\-Handler@{filesystem\-::server\-::file\-::\-File\-Handler}!read\-Request\-Block@{read\-Request\-Block}}
\index{read\-Request\-Block@{read\-Request\-Block}!filesystem::server::file::FileHandler@{filesystem\-::server\-::file\-::\-File\-Handler}}
\subsubsection[{read\-Request\-Block}]{\setlength{\rightskip}{0pt plus 5cm}void filesystem.\-server.\-file.\-File\-Handler.\-read\-Request\-Block (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{classfilesystem_1_1server_1_1file_1_1FileHandler_a4e5f293d4cc040001a761926771d0558}
Requere uma operação de leitura no arquivo (bloqueante). \hypertarget{classfilesystem_1_1server_1_1file_1_1FileHandler_aa2292a41b2130e91a9467f827d48b482}{\index{filesystem\-::server\-::file\-::\-File\-Handler@{filesystem\-::server\-::file\-::\-File\-Handler}!read\-Release@{read\-Release}}
\index{read\-Release@{read\-Release}!filesystem::server::file::FileHandler@{filesystem\-::server\-::file\-::\-File\-Handler}}
\subsubsection[{read\-Release}]{\setlength{\rightskip}{0pt plus 5cm}void filesystem.\-server.\-file.\-File\-Handler.\-read\-Release (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{classfilesystem_1_1server_1_1file_1_1FileHandler_aa2292a41b2130e91a9467f827d48b482}
Finaliza a operação de leitura. 

Este é o diagrama das funções que utilizam esta função\-:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{classfilesystem_1_1server_1_1file_1_1FileHandler_aa2292a41b2130e91a9467f827d48b482_icgraph}
\end{center}
\end{figure}




A documentação para esta classe foi gerada a partir do seguinte arquivo\-:\begin{DoxyCompactItemize}
\item 
src/filesystem/server/file/\hyperlink{FileHandler_8java}{File\-Handler.\-java}\end{DoxyCompactItemize}
